
package com.crm.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * The persistent class for the INANDOUTLOG database table.
 */
@Entity
@NamedQuery(name = "Inandoutlog.findAll", query = "SELECT i FROM Inandoutlog i")
public class Inandoutlog implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(initialValue = 1, allocationSize = 1, name = "INANDOUTLOG_IOID_GENERATOR", sequenceName = "SEQ2")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "INANDOUTLOG_IOID_GENERATOR")
    private Long ioid;

    @Column(name = "INANDOUTLOG_IS_DEL")
    private String inandoutlogIsDel;

    @Column(name = "IORID")
    private Long iorid;

    @Transient
    private String iorname;

    @Temporal(TemporalType.DATE)
    @Column(name = "IO_DATE")
    @JSONField(format = "yyyy-MM-dd")
    private Date ioDate;

    @Column(name = "IO_DISPATHER_ID")
    private Long ioDispatherId;
    @Column(name = "HANDMANID")
    private Long handmanId;
    @Transient
    private String ioDispatherTitle;
    private Long iotype;
    private String iotitle;
    @Transient
    private String handman;

    public Inandoutlog(String inandoutlogIsDel, Long iorid, String iorname, Date ioDate, Long ioDispatherId, Long handmanId, String ioDispatherTitle, Long iotype, String iotitle, String handman, String nickname, String clientname) {
        this.inandoutlogIsDel = inandoutlogIsDel;
        this.iorid = iorid;
        this.iorname = iorname;
        this.ioDate = ioDate;
        this.ioDispatherId = ioDispatherId;
        this.handmanId = handmanId;
        this.ioDispatherTitle = ioDispatherTitle;
        this.iotype = iotype;
        this.iotitle = iotitle;
        this.handman = handman;
        this.nickname = nickname;
        this.clientname = clientname;
    }

    @Transient
    private String nickname;
    @Transient
    private String clientname;

    public Inandoutlog() {
        super();
    }


    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public Long getIorid() {
        return iorid;
    }

    public String getIorname() {
        return iorname;
    }

    public void setIorname(String iorname) {
        this.iorname = iorname;
    }

    public void setIorid(Long iorid) {
        this.iorid = iorid;
    }

    public String getClientname() {
        return clientname;
    }

    public void setClientname(String clientname) {
        this.clientname = clientname;
    }

    public Long getHandmanId() {
        return handmanId;
    }

    public void setHandmanId(Long handmanId) {
        this.handmanId = handmanId;
    }

    public Long getIoid() {
        return ioid;
    }

    public void setIoid(Long ioid) {
        this.ioid = ioid;
    }

    public String getInandoutlogIsDel() {
        return inandoutlogIsDel;
    }

    public void setInandoutlogIsDel(String inandoutlogIsDel) {
        this.inandoutlogIsDel = inandoutlogIsDel;
    }

    public Date getIoDate() {
        return ioDate;
    }

    public void setIoDate(Date ioDate) {
        this.ioDate = ioDate;
    }

    public Long getIoDispatherId() {
        return ioDispatherId;
    }

    public void setIoDispatherId(Long ioDispatherId) {
        this.ioDispatherId = ioDispatherId;
    }

    public String getIoDispatherTitle() {
        return ioDispatherTitle;
    }

    public void setIoDispatherTitle(String ioDispatherTitle) {
        this.ioDispatherTitle = ioDispatherTitle;
    }

    public Long getIotype() {
        return iotype;
    }

    public void setIotype(Long iotype) {
        this.iotype = iotype;
    }

    public String getIotitle() {
        return iotitle;
    }

    public void setIotitle(String iotitle) {
        this.iotitle = iotitle;
    }


    public String getHandman() {
        return handman;
    }

    public void setHandman(String handman) {
        this.handman = handman;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }


}